package com.cl.short_video_java.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cl.short_video_java.dto.OrderStats;
import com.cl.short_video_java.pojo.VideoShopOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cl.short_video_java.vo.shop.OrderSearch;
import com.cl.short_video_java.vo.shop.OrderStatsVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author object
 * @description 针对表【video_shop_order】的数据库操作Service
 * @createDate 2024-10-31 15:58:59
 */
public interface VideoShopOrderService extends IService<VideoShopOrder> {
	Page<VideoShopOrder> page(OrderSearch orderSearch);

	void del(List<String> ids);

	List<OrderStats> stats(OrderStatsVo orderStats);

	VideoShopOrder createOrder(Integer shopId, HttpServletRequest request);

	void processOrder(Map<String, String> params);

	void cancel(String orderNo);

	String queryOrder(String orderNo);

	void checkOrderStatus(String orderId);

	Page<VideoShopOrder> getByUserOrder(Integer pageNum, HttpServletRequest request);
}
